/*
 *
 * Copyright (C) 2012 Walter Lütgenau
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package offset.nodes.server.workflow.model;

import java.util.Locale;
import java.util.ResourceBundle;
import offset.nodes.server.error.model.ExceptionId;
import offset.nodes.client.model.Severity;

/**
 *
 * @author Walter L�tgenau
 */
public class WorkflowExceptionId extends ExceptionId {
    public static final WorkflowExceptionId NO_PERMISSION_FOR_CURRENT_STATE = new WorkflowExceptionId("workflow.noPermissionForCurrentState", Severity.Info);
    public static final WorkflowExceptionId NO_PERMISSION_FOR_STATE = new WorkflowExceptionId("workflow.noPermissionForState", Severity.Info);
    public static final WorkflowExceptionId NO_CREATION_STATE = new WorkflowExceptionId("workflow.noCreationState", Severity.Info);

    public WorkflowExceptionId(String id, Severity severity) {
        super(id, severity);
    }

    @Override
    public ResourceBundle getBundle(Locale locale) {
        return ResourceBundle.getBundle("/offset/nodes/web/workflow/view/WorkflowExceptionId", locale);
    }



}
